package com.example.mq.mqServer.core;

import lombok.Data;

/**
 * @BelongsProject: 0.mq
 * @BelongsPackage: com.example.mq.mqServer.core
 * @Author : 游在海里的鱼
 * @CreateTime : 2023-11-22  12:04
 * @Version : 1.0
 * @Description : MQ绑定
 */
@Data
public class Binding {
    //
    private String exchangeName;
    //
    private String queueName;
    //要求队列与交换机满足key的要求
    private String bindingKey;


    public Binding() {
        this.exchangeName = null;
        this.queueName = null;
        this.bindingKey = null;
    }
    public Binding(String exchangeName, String queueName, String bindingKey) {
        this.exchangeName = exchangeName;
        this.queueName = queueName;
        this.bindingKey = bindingKey;
    }
}
